package com.zelin.listener;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * Created by WF on 2020/12/21 15:40
 */
//@Component
//@RabbitListener(queues = "zl-gz")
public class Consumer04 {

    @RabbitHandler
    public void getMessage(String message){
        System.out.println("正在接受消息[Fanout:zl-gz]-->" + message);
    }
}
